﻿@model Sohobloo.SoAuth.Web.Models.FunctionModel

<h2>Add Function</h2>
@Html.ActionLink("Back", "Index")
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Function</legend>
        <div class="editor-label">
            @Html.LabelFor(m => Model.FunctionName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.FunctionName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.FunctionUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.FunctionUrl)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.FunctionEnabled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.FunctionEnabled)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.IgnoreControl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.IgnoreControl)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.InMenu)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.InMenu)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.ParentFunctionName)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(m => Model.ParentFunctionId, ViewBag.FunctionList as SelectList)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.MenuOrder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.MenuOrder)
        </div>
        <div>
            <input type="submit" value="Submit" />
        </div>
    </fieldset>
}